package cn.chenhao.basic.query;

import lombok.Data;

@Data
public class BasicQuery {
    /**
     * 分页功能
     */
    private Integer currentPage = 1;
    private Integer pageSize = 10;
    /**
     * 高级查询
     */
    private String keywords;
    private String username;
    private String name;

    public Integer getStart(){
        return (this.currentPage - 1) * this.pageSize;
    }

}
